<?php

use Phinx\Migration\AbstractMigration;

class AddColumnHourProportionInEntityTable extends AbstractMigration
{

    public function up()
    {
        $this->table("entity")
            ->addColumn("hour_proportion", 'string', [
                'limit' => 20,
                'default' => "",
                'comment' => "工时系数",
            ])->save();
    }

    public function down()
    {
        $this->table("entity")
            ->removeColumn("hour_proportion")
            ->save();
    }
}
